package com.ruoyi.matchmaker.service.impl;

import java.util.List;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.matchmaker.mapper.TbMatchmakerMapper;
import com.ruoyi.matchmaker.domain.TbMatchmaker;
import com.ruoyi.matchmaker.service.ITbMatchmakerService;

/**
 * 红娘信息Service业务层处理
 *
 * @author ruoyi
 * @date 2025-07-29
 */
@Service
public class TbMatchmakerServiceImpl extends ServiceImpl<TbMatchmakerMapper, TbMatchmaker> implements ITbMatchmakerService
{
    @Autowired
    private TbMatchmakerMapper tbMatchmakerMapper;

    /**
     * 查询红娘信息
     *
     * @param matchmakerId 红娘信息主键
     * @return 红娘信息
     */
    @Override
    public TbMatchmaker selectTbMatchmakerByMatchmakerId(Long matchmakerId)
    {
        return tbMatchmakerMapper.selectTbMatchmakerByMatchmakerId(matchmakerId);
    }

    /**
     * 查询红娘信息列表
     *
     * @param tbMatchmaker 红娘信息
     * @return 红娘信息
     */
    @Override
    public List<TbMatchmaker> selectTbMatchmakerList(TbMatchmaker tbMatchmaker)
    {
        return tbMatchmakerMapper.selectTbMatchmakerList(tbMatchmaker);
    }

    /**
     * 新增红娘信息
     *
     * @param tbMatchmaker 红娘信息
     * @return 结果
     */
    @Override
    public int insertTbMatchmaker(TbMatchmaker tbMatchmaker)
    {
        return tbMatchmakerMapper.insertTbMatchmaker(tbMatchmaker);
    }

    /**
     * 修改红娘信息
     *
     * @param tbMatchmaker 红娘信息
     * @return 结果
     */
    @Override
    public int updateTbMatchmaker(TbMatchmaker tbMatchmaker)
    {
        return tbMatchmakerMapper.updateTbMatchmaker(tbMatchmaker);
    }

    /**
     * 批量删除红娘信息
     *
     * @param matchmakerIds 需要删除的红娘信息主键
     * @return 结果
     */
    @Override
    public int deleteTbMatchmakerByMatchmakerIds(Long[] matchmakerIds)
    {
        return tbMatchmakerMapper.deleteTbMatchmakerByMatchmakerIds(matchmakerIds);
    }

    /**
     * 删除红娘信息信息
     *
     * @param matchmakerId 红娘信息主键
     * @return 结果
     */
    @Override
    public int deleteTbMatchmakerByMatchmakerId(Long matchmakerId)
    {
        return tbMatchmakerMapper.deleteTbMatchmakerByMatchmakerId(matchmakerId);
    }
}